﻿@model Codinlab.CustomCode.Models.CustomCodeSettingsPart

@{
    Layout.Title = T("Custom code settings");

    Style.Include("codinlab-customcode-admin.css");

    Script.Require("jQuery");
    Script.Include("ace/ace.js").AtFoot();
    Script.Include("admin-customcode.js").AtFoot();
}

<fieldset class="codinlab-customcode">
    <legend>@T("Head code")</legend>
    <div>
        <span class="hint">@T("Code below will be included between &lt;head&gt; and &lt;/head&gt; tags.")</span>
        @Html.TextAreaFor(m => m.HeadCode)
    </div>
</fieldset>

<fieldset class="codinlab-customcode">
    <legend>@T("Foot code")</legend>
    <div>
        <span class="hint">@T("Code below will be included at the end of the page.")</span>
        @Html.TextAreaFor(m => m.FootCode)
    </div>
</fieldset>